package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class LikeClause implements TableElement {

    private int beginIndex;
    private int endIndex;
    private LocalOrSchemaQualifiedName tableName;
    private LikeOptions likeOptions;

    public LikeClause(int beginIndex,
                      int endIndex,
                      LocalOrSchemaQualifiedName tableName,
                      LikeOptions likeOptions) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.tableName = tableName;
        this.likeOptions = likeOptions;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public LocalOrSchemaQualifiedName getTableName() {
        return tableName;
    }

    public LikeOptions getLikeOptions() {
        return likeOptions;
    }

}
